<?php
	include("global.php");
	if(!empty($_POST[orderid]) && !empty($_POST[pas]))
	{
		$productid = $_POST[orderid];
			$pas = $_POST[pas];
		$sql="select *from order2 where customer_id= '$productid' and pas='$pas'";
			$qs = mysql_query($sql);
		$row_array = mysql_fetch_array($qs);
			
		if(!is_array($row_array)) {
			$db->Get_admin_msg("order_query.php","没有该订单");
		}
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css/div.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.js" language="javascript" type="text/javascript"></script>
<script src="js/jquery-1.4.2.js" language="javascript" type="text/javascript"></script>
<script src="js/secondmenu.js" language="javascript" type="text/javascript"></script>
<style type="text/css">
.pages { height:25px; overflow:hidden; text-align:center; line-height:25px; font-family:Verdana; }
.pages a, .pages strong { margin:0 1px; padding:2px 6px; border:1px solid #E4E4E4; text-decoration:none!important; }
.pages a:hover { border-color:#369; color:369 }
.backs { border-color:#369; background:#369; color:#FFF; }
.pages .prev { padding:4px 6px 2px 20px!important; padding:4px 6px 0 20px; background:url(images/arrow_left.gif) no-repeat 9% 50%; font-family:simsun; }
.next { padding:4px 20px 2px 6px!important; padding:4px 20px 0 6px; background:url(images/arrow_right.gif) no-repeat 91% 50%; font-family:simsun; }
</style>
<script type="text/javascript">
	$(function(){
		$("#fenye a").click( function() {
			$(this).addClass("backs");
		});
	});	 
</script>


</head>
<?php
	include("conn/conn.php");
?>
<body>
<div class="box1">
	<?php include("top.php"); ?>
		<embed src="diy/pics/20100623/1.swf" width="1002" height="254" style="position: absolute; left: 18%; top: 130px;"  quality="high" wmode="transparent"  />
			<img src="diy/pics/20100623/renliziyuan1.png" border="0" width="1002" />
		  </div>
		</div>
		<div style=" height:10px;">&nbsp;</div>
		
	<div style=" height:20px;">&nbsp;</div>
	<div style=" width:1003px;">
		<div style=" width:200px; overflow:hidden; float:left;">
			
			<?php
				include("ordertree.php");
				include("search.php");
			?>
		</div>
		<div style="float:left; width:50px;">&nbsp;</div>
		<div style=" float:left; width:750px;">
			<div style=" width: 750px; background-color:#8DBAE0; height:5px;"></div>
			<div style=" width:200px; height:15px;">&nbsp;</div>
			<div style=" width:750px; height:20px;">
				<span style=" float:left; text-align:left;color:#768DC1; font-size:15px; font-weight:bolder; height:30px;">
					订单详细列表
				</span><span style=" float:right;text-align:right" id="span1"><a href="index.php">首页</a>-><a href="order.php">会员中心</a>-><a href="query_list.php">订单详细列表</a></span>
			</div>
			<div style=" height:10px;">&nbsp;</div>
			<div style=" width:750px; text-align:left;">
			<table border="0" cellpadding="2" cellspacing="1" style="width:100%">
					  <tr style=" height:30px;">
					    <td width="15%" align="right">订单编号：</td>
					    <td width="65%"><input type="text" name="customer_id" id="title" value="<?php echo $row_array['customer_id']?>" style="width: 45%;" disabled/></td>
					    <td width="10%" align="right">&nbsp;</td>
					    <td width="10%">&nbsp;</td>
					    </tr>
                       	<tr style=" height:30px;">
					    <td width="15%" align="right">订单用户名称：</td>
					    <td width="65%"><input type="text" name="userid" id="title" value="<?php echo $row_array['userid']?>" style="width: 45%;" disabled/></td>
					    <td width="10%" align="right">&nbsp;</td>
					    <td width="10%">&nbsp;</td>
					    </tr>
                                                    <tr style=" height:30px;">
					    <td width="15%" align="right">订单密码：</td>
					    <td width="65%"><input type="text" name="pas" id="title" value="<?php echo $row_array['pas']?>" style="width: 45%;" disabled/></td>
					    <td width="10%" align="right">&nbsp;</td>
					    <td width="10%">&nbsp;</td>
					    </tr>
                                               <tr style=" height:30px;">
					    <td width="15%" align="right">产品编号：</td>
					    <td width="65%"><input type="text" name="productid" id="title" value="<?php echo $row_array['productid']?>" style="width: 45%;" disabled/></td>
					    <td width="10%" align="right">&nbsp;</td>
					    <td width="10%">&nbsp;</td>
					    </tr>
                                               <tr style=" height:30px;">
					    <td width="15%" align="right">产品名称：</td>
					    <td width="65%"><input type="text" name="products" id="title" value="<?php echo $row_array['products']?>" style="width: 45%;" disabled/></td>
					    <td width="10%" align="right">&nbsp;</td>
					    <td width="10%">&nbsp;</td>
					    </tr>
                                               <tr style=" height:30px;">
					    <td width="15%" align="right">价格：</td>
					    <td width="65%"><input type="text" name="price" id="title" value="<?php echo $row_array['price']?>" style="width: 45%;" disabled/></td>
					    <td width="10%" align="right">&nbsp;</td>
					    <td width="10%">&nbsp;</td>
					    </tr>
                                               <tr style=" height:30px;">
					    <td width="15%" align="right">数量：</td>
					    <td width="65%"><input type="text" name="ordernum" id="title" value="<?php echo $row_array['ordernum']?>" style="width: 45%;" disabled/></td>
					    <td width="10%" align="right">&nbsp;</td>
					    <td width="10%">&nbsp;</td>
					    </tr>
                                               <tr style=" height:30px;">
					    <td width="15%" align="right">总价：</td>
					    <td width="65%"><input type="text" name="allprice" id="title" value="<?php echo $row_array['allprice']?>" style="width: 45%;" disabled/></td>
					    <td width="10%" align="right">&nbsp;</td>
					    <td width="10%">&nbsp;</td>
					    </tr>
                                               <tr style=" height:30px;">
					    <td width="15%" align="right">订货日期：</td>
					    <td width="65%"><input type="text" name="dinghuotime" id="title" value="<?php echo $row_array['created']?>" style="width: 45%;" disabled/></td>
					    <td width="10%" align="right">&nbsp;</td>
					    <td width="10%">&nbsp;</td>
					    </tr>
                                               <tr style=" height:30px;">
					    <td width="15%" align="right">交货日期：</td>
					    <td width="65%"><input type="text" name="jiaohuotime" id="title" value="<?php echo $row_array['jiaohuotime']?>" style="width: 45%;" disabled/></td>
					    <td width="10%" align="right">&nbsp;</td>
					    <td width="10%">&nbsp;</td>
					    </tr>
					    <tr style=" height:30px;">
					    <td width="15%" align="right">负责人：</td>
					    <td width="65%"><input type="text" name="fuzeren" id="title" value="<?php echo $row_array['fuzeren']?>" style="width: 45%;" disabled/></td>
					    <td width="10%" align="right">&nbsp;</td>
					    <td width="10%">&nbsp;</td>
					    </tr>
					  </table>
			</div>
		</div>
	</div>
	<?php
		include("foot.php");
	?>
</div>
</body>
</html>

